//
//  AppNetworkingManager+OASubmit.h
//  OANetworkManager_Example
//
//  Created by TFAppleWork-Summer on 2018/3/2.
//  Copyright © 2018年 GuoRui. All rights reserved.
//

#import "AppNetworkingManager.h"
/**
 提交相关接口
 */
@class OADailyReportDetailModel;
@class OAOvertimeReportCommitModel;
@class OALeaveReportCommitModel;

@interface AppNetworkingManager (OASubmit)

/**
 日报提交/修改  complete 回调返回的是OADailyReportDetailModel 对象
 @param detailModel 日报详情对象
 @param complete 接口回调
 */
+(TFRequest *)addOrUpdateJournalWithModel:(OADailyReportDetailModel *)detailModel
                                 complete:(OANetworkingObjectBlock)complete;


/**
 提交/更改加班登记

 @param overTimeModel 加班提交对象  complete 回调返回的OAOvertimeReportDetailModel 对象
 @param complete 接口回掉
 */
+(TFRequest *)addOrUpdateOverTimeWithModel:(OAOvertimeReportCommitModel *)overTimeModel
                                  complete:(OANetworkingObjectBlock)complete;


/**
 获取请假类型  complete 接口回调 返回 OALeaveTypeModel的数组

 @param complete 接口回调 返回 OALeaveTypeModel的数组
 */
+(TFRequest *)getLeaveTypeComplete:(OANetworkingObjectBlock)complete;


/**
 提交/更改请假记录  complete 接口回调 返回 OALeaveReportDetailModel

 @param complete 接口回调
 */
+(TFRequest *)addOrUpdateLeaveWithModel:(OALeaveReportCommitModel *) model
                               Complete:(OANetworkingObjectBlock)complete;


@end
